All Packages Class Hierarchy This Package Previous Next Index
Class quicktime.qd.PixMap
java.lang.Object
|
+----quicktime.QTObject
|
+----quicktime.util.QTHandleRef
|
+----quicktime.qd.PixMap
- public final class PixMap
- extends QTHandleRef
- implements QuickTimeLib
A pixel map contains information about the dimensions and contents of a pixel
image, as well as information on the image's storage format, depth, resolution
and color usage.
Refer to PixMap in QuickDraw
-
kNativeSize
- This is the size (the number of bytes) that are required for this class
-
fromGDevice(GDevice)
- A PixMap object which describes the pixels in a GDevice.
-
fromQDGraphics(QDGraphics)
- A PixMap object which describes the pixels in the QDGraphics.
-
getBounds()
- The boundary rectangle, which links the local coordinate system of a graphics
port to QuickDraw's global coordinate system and defines the area of the bit
image into which QuickDraw can draw.
-
getColorTable()
- When creating a PixMap for a particular graphics device, Color QuickDraw
creates a ColorTable that defines the best colors available for the pixel
image on that particular graphics device.
-
getPixelData()
- Returns the actual Pixel data itself.
-
getPixelFormat()
- Returns the pixel format of this PixMap
-
getPixelSize()
- Return the size (how many bits) of each pixel in the pixel data
-
getRowBytes()
- Return the number of bytes each row of the pixel data makes up.
-
isOffscreen()
- Returns true if the pixel data is from an offscreen GWorld or
false if it is from an onscreen CGrafPort
-
toString()
- Print information about this object.
kNativeSize
public static final int kNativeSize
- This is the size (the number of bytes) that are required for this class
fromQDGraphics
public static PixMap fromQDGraphics(QDGraphics g)
- A PixMap object which describes the pixels in the QDGraphics.
QuickTime::GetGWorldPixMap()
- Parameters:
- g - the QDGraphics object
- Returns:
- a PixMap object
- See Also:
- getPixMap
fromGDevice
public static PixMap fromGDevice(GDevice g)
- A PixMap object which describes the pixels in a GDevice.
- Parameters:
- g - the GDevice object
- Returns:
- a PixMap object
isOffscreen
public boolean isOffscreen()
- Returns true if the pixel data is from an offscreen GWorld or
false if it is from an onscreen CGrafPort
getRowBytes
public int getRowBytes()
- Return the number of bytes each row of the pixel data makes up.
- Returns:
- the byte length in each row
getPixelSize
public int getPixelSize()
- Return the size (how many bits) of each pixel in the pixel data
- Returns:
- pixel size
getPixelFormat
public int getPixelFormat()
- Returns the pixel format of this PixMap
getPixelData
public RawEncodedImage getPixelData()
- Returns the actual Pixel data itself. This can then be passed around in ICM calls
that deal with pixel data.
- Returns:
- the pixels
getBounds
public QDRect getBounds()
- The boundary rectangle, which links the local coordinate system of a graphics
port to QuickDraw's global coordinate system and defines the area of the bit
image into which QuickDraw can draw.
- Returns:
- a QDRect object representing the bounds of the PixMap
getColorTable
public ColorTable getColorTable()
- When creating a PixMap for a particular graphics device, Color QuickDraw
creates a ColorTable that defines the best colors available for the pixel
image on that particular graphics device. Note that a reference to the
PixMap object will be maintained by the ColorTable object to prevent the
PixMap from being garbage collected before the ColorTable.
- Returns:
- a ColorTable object
- See Also:
- ColorTable
toString
public String toString()
- Print information about this object.
- Returns:
- a string representing this PixMap object
- Overrides:
- toString in class QTHandleRef
All Packages Class Hierarchy This Package Previous Next Index